/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fee.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.modules.fee.entity.Bill;
import com.jeeplus.modules.fee.entity.Receivables;
import com.jeeplus.modules.fee.entity.Consignor;
import com.jeeplus.modules.sys.entity.Office;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 收款单-应收结算单明细Entity
 * @author weisong
 * @version 2017-09-22
 */
public class BillReceiveDetail extends DataEntity<BillReceiveDetail> {
	
	private static final long serialVersionUID = 1L;
	private String clearingNo;		// 结算单号
	private Date busyDate;		// 结算日期
	private Bill feeBill;		// 收款单
	private Double clearingMoney;		// 结算金额
	private Double vcaMoney;		// 已核销金额
	private Double theVcaMoney;		// 本次核销金额
	private Receivables feeReceivables;		// 应收结算单
	private Consignor feeConsignor;		// 结算方
	private Office logistics;		// 物流组织
	
	public BillReceiveDetail() {
		super();
	}

	public BillReceiveDetail(String id){
		super(id);
	}

	@ExcelField(title="结算单号", align=2, sort=6)
	public String getClearingNo() {
		return clearingNo;
	}

	public void setClearingNo(String clearingNo) {
		this.clearingNo = clearingNo;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="结算日期", align=2, sort=7)
	public Date getBusyDate() {
		return busyDate;
	}

	public void setBusyDate(Date busyDate) {
		this.busyDate = busyDate;
	}
	
	@ExcelField(title="收款单", align=2, sort=8)
	public Bill getFeeBill() {
		return feeBill;
	}

	public void setFeeBill(Bill feeBill) {
		this.feeBill = feeBill;
	}
	
	@ExcelField(title="结算金额", align=2, sort=9)
	public Double getClearingMoney() {
		return clearingMoney;
	}

	public void setClearingMoney(Double clearingMoney) {
		this.clearingMoney = clearingMoney;
	}
	
	@ExcelField(title="已核销金额", align=2, sort=10)
	public Double getVcaMoney() {
		return vcaMoney;
	}

	public void setVcaMoney(Double vcaMoney) {
		this.vcaMoney = vcaMoney;
	}
	
	@ExcelField(title="本次核销金额", align=2, sort=11)
	public Double getTheVcaMoney() {
		return theVcaMoney;
	}

	public void setTheVcaMoney(Double theVcaMoney) {
		this.theVcaMoney = theVcaMoney;
	}
	
	@ExcelField(title="应收结算单", align=2, sort=12)
	public Receivables getFeeReceivables() {
		return feeReceivables;
	}

	public void setFeeReceivables(Receivables feeReceivables) {
		this.feeReceivables = feeReceivables;
	}
	
	@ExcelField(title="结算方", align=2, sort=13)
	public Consignor getFeeConsignor() {
		return feeConsignor;
	}

	public void setFeeConsignor(Consignor feeConsignor) {
		this.feeConsignor = feeConsignor;
	}
	
	@ExcelField(title="物流组织", fieldType=Office.class, value="logistics.name", align=2, sort=14)
	public Office getLogistics() {
		return logistics;
	}

	public void setLogistics(Office logistics) {
		this.logistics = logistics;
	}
	
}